﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace SteamGameApp
{
    public class BudgetItem
    {
                #region Members
        private string name;
        private float price;
        private DateTime dateAdded;
        private bool isDirty = false;
        #endregion

        #region Propities

        [XmlAttribute("Name")]
        public string Name
        {
            get { return name; }
            set { name = value; isDirty = true; }
        }
        [XmlElement("Price")]
        public float Price
        {
            get { return price; }
            set { price = value; isDirty = true; }
            }
        [XmlElement("DateAdded")]
        public DateTime DateAdded
            {
            get { return dateAdded; }
            set { dateAdded = value; isDirty = true; }
        }
        #endregion
    }
}
